﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ERP.WH.Models.Entity;

[Table("wh_inventory")]
public partial class WhInventory
{
    [Key]
    public long InventoryId { get; set; }

    public long MaterialId { get; set; }

    public long LocationId { get; set; }

    /// <summary>
    /// 批次号
    /// </summary>
    public string? BatchNo { get; set; }

    public decimal Quantity { get; set; }

    /// <summary>
    /// 锁定数量
    /// </summary>
    public decimal? LockedQuantity { get; set; }

    /// <summary>
    /// 生产日期
    /// </summary>
    public DateOnly? ProductionDate { get; set; }

    /// <summary>
    /// 过期日期
    /// </summary>
    public DateOnly? ExpiryDate { get; set; }

    /// <summary>
    /// 单位成本
    /// </summary>
    public decimal? UnitCost { get; set; }

    /// <summary>
    /// 总成本
    /// </summary>
    public decimal? TotalCost { get; set; }

    /// <summary>
    /// 1-正常, 2-待检, 3-冻结, 4-报废
    /// </summary>
    public sbyte? InventoryStatus { get; set; }

    /// <summary>
    /// 最后盘点时间
    /// </summary>
    public DateTime? LastCheckTime { get; set; }

    public DateTime? CreatedAt { get; set; }

    public DateTime? UpdatedAt { get; set; }

    public sbyte? IsDelete { get; set; }
}
